import com.itheima.UserService;
import org.junit.Test;
import org.springframework.context.support.ClassPathXmlApplicationContext;

public class tsetDeom {
    @Test
    public void test() {
        ClassPathXmlApplicationContext ctx= new ClassPathXmlApplicationContext("applicationContext.xml");
        UserService userService = ctx.getBean("UserService", UserService.class);
        String a = userService.getName("张三");
        System.out.println(a);
    }
}
